import Vue from "vue";
import App from "./App";
import store from "./store"; // store
import plugins from "./plugins"; // plugins
import "./permission"; // permission

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);

import VueCropper from "vue-cropper";
Vue.use(VueCropper);

import Prompt from "@/components/Prompt.vue";
import Teacher from "@/pages/teacher/index.vue";
import Home from "@/pages/home/index.vue";
Vue.component("Prompt", Prompt);
Vue.component("Teacher", Teacher);
Vue.component("Home", Home);

// import eruda from 'eruda';
// eruda.init();
// eruda.show();
//路由守卫
import "@/api/plugins/routeGuards";
// // #ifdef H5
// import Vant from 'vant'
// Vue.use(Vant)
// // #endif

import Recorder from "recorder-core";
import "recorder-core/src/engine/mp3";
import "recorder-core/src/engine/mp3-engine";
import "recorder-core/src/extensions/waveview";

// 移动端调试
// import VConsole from "vconsole";
// new VConsole();

Vue.use(plugins);

Vue.config.productionTip = false;
Vue.prototype.$store = store;

App.mpType = "app";

const app = new Vue({
  ...App,
});

app.$mount();
